package com.tedu.basic;

class Point{
    private int x;
    private int y;
    public Point(int x,int y){
        this.x=x;
        this.y=y;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }
}
public class ReflectTest2 {
    public static void main(String[] args) {
        //作业:
        //1.通过反射构建Point类型的实例对象
        //2.通过反射为point类实例的属性直接赋值
        //3.通过反射调用point类的实例方法为属性赋值
        //4.通过反射调用point类的get方法获取属性值.
    }
}
